<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
    
<button id="btn" class="btn btn-info" title="<h2>这是一个提示信息</h2>" data-toggle="tooltip">按钮</button>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$(function(){
    $("#btn").tooltip({
        placement:"auto",
        delay:{"show":1000,"hide":2000},
        html:true
    });
    
    

    

})
</script>

</body>
</html>